import request from '@/assets/utils/request'
import type {AxiosPromise} from 'axios'

/**
 * 新鲜好物数据接口
 * @returns {AxiosPromise}
 */
export const getNewGood = () => request.get('home/new')

/**
 * 人气推荐数据接口
 * @returns {AxiosPromise}
 */
export const getHotCate = () => request.get('home/hot')

/**
 * 获取首页推荐分类及分类下推荐商品接口
 * @return {AxiosPromise}
 */
export const getRecCategory = () => request.get('home/goods')

/**
 * 获取首页推荐专题数据
 */
export const getSpecial = () => request.get('home/special')
